package com.example.springcloudcus.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Song Yinghui
 * @date 2018/11/7
 * @Version 1.0
 */

@RestController
public class TestController {

    @Autowired
    private TestInterface testInterface ;

    @RequestMapping(value = "/test")
    public String test(String name ){
        System.out.println("---------"+name);
        String test = testInterface.test(name);
        return test ;
    }
}
